package com.augurit.gzcgwsp.mail.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 邮件实体
 * @author Administrator
 *
 */
@Entity
@Table(name = "YW_MAIL")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Mail {
	@Id
    @Column(name = "mail_id")
    @SequenceGenerator(name="SEQ_YW_MAIL", sequenceName="SEQ_YW_MAIL", allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_YW_MAIL")
	private Long mailId;//id
	private String account;//邮箱
	private String content;//发送的内容
	private String accep_no;//业务受理编号
	private String sts;//1，已发送2，未发送
	private String title;//标题
	private String sendTime;//发送时间
	private String receiveTime;//接受时间
	public String getTitle() {
		return title;
	}
	public String getSendTime() {
		return sendTime;
	}
	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}
	public String getReceiveTime() {
		return receiveTime;
	}
	public void setReceiveTime(String receiveTime) {
		this.receiveTime = receiveTime;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Long getMailId() {
		return mailId;
	}
	public void setMailId(Long mailId) {
		this.mailId = mailId;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getAccep_no() {
		return accep_no;
	}
	public void setAccep_no(String accep_no) {
		this.accep_no = accep_no;
	}
	public String getSts() {
		return sts;
	}
	public void setSts(String sts) {
		this.sts = sts;
	}
	
}
